import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { AppPaginationModule } from './../../widgets/pagination/pagination.module';
import { DataRoutingModule } from './data-routing.module';
import { Table1Component } from './table1/table1.component';
import { Table2Component } from './table2/table2.component';
import { Table3Component } from './table3/table3.component';
import { Table4Component } from './table4/table4.component';
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from '../../../assets/angularx-flatpickr';
export function flatpickrFactory() {
  return flatpickr;
}

@NgModule({
  imports: [
    CommonModule,
    DataRoutingModule,
    AppPaginationModule,
    FormsModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [Table1Component, Table2Component, Table3Component, Table4Component]
})
export class DataModule { }
